import config from "@/config"
import http from "@/utils/request"

export default {
	lists: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/lists`,
		name: "获取仓库列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	edit: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/edit`,
		name: "修改仓库",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	add: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/add`,
		name: "添加仓库",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	delete: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/delete`,
		name: "删除仓库",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
    update_status: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/update_default`,
		name: "仓库切换",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	detail: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/detail`,
		name: "修改仓库状态",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
    number: {
		url: `${config.API_URL}/adminapi/stock.OtherStock/change`,
		name: "修改仓库数量",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
    other:{
        list: {
            url: `${config.API_URL}/adminapi/stock.OtherStock/lists`,
            name: "获取其他出入库列表",
            get: async function(params){
                return await http.get(this.url, params);
            }
        },
        edit: {
            url: `${config.API_URL}/adminapi/stock.OtherStock/edit`,
            name: "修改其他出入库",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        add: {
            url: `${config.API_URL}/adminapi/stock.OtherStock/add`,
            name: "添加其他出入库",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        delete: {
            url: `${config.API_URL}/adminapi/stock.OtherStock/delete`,
            name: "删除其他出入库",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        detail: {
            url: `${config.API_URL}/adminapi/stock.OtherStock/detail`,
            name: "修改其他出入库状态",
            get: async function(params){
                return await http.get(this.url, params);
            }
        },
        check: {
			url: `${config.API_URL}/adminapi/stock.OtherStock/checkStatus`,
			name: "其他出入库审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/stock.OtherStock/uncheckStatus`,
			name: "其他出入库 反审核",
	        post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        import: {
			url: `${config.API_URL}/adminapi/stock.otherStock/import`,
			name: "其他出入库 导入",
	        post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        inimport: {
			url: `${config.API_URL}/adminapi/stock.otherStock/in_import`,
			name: "其他出入库 导入",
	        post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detailList: {
			url: `${config.API_URL}/adminapi/stock.otherStock/order_detail`,
			name: "其他出入库 导入",
	        get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
    },
}
